Component({
    data: {
        wk:""
    },
    properties: {
        word:{
            type:String,
            value:""
        }
    },
    methods: {
        userInput:function(e){
            // console.log(e);
            this.setData({
                wk:e.detail.value
            });
        },
        searchPage(){
            // console.log(this.data.wk);
            wx.navigateTo({
                url: '/pages/search/search?wk='+this.data.wk,
            });
        }
    }
})